package com.ys.day30.p4XML解析与配置;

import java.util.Objects;

/**
 * 描述:
 *
 * @author CodeYang
 * @version 2021/1/14 16:58
 */
public class Citys {
    /**
     * name
     */
    private String name;
    /**
     * desc
     */
    private String desc;

    public Citys() {
    }

    public Citys(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Citys citys = (Citys) o;
        return Objects.equals(name, citys.name) &&
                Objects.equals(desc, citys.desc);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, desc);
    }

    @Override
    public String toString() {
        return "Citys{" +
                "name='" + name + '\'' +
                ", desc='" + desc + '\'' +
                '}';
    }
}
